﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using SingleUserMall.Items;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Stores.VO
{
    [AutoMapFrom(typeof(Store))]
    public class StoreVO:EntityDto
    {
        internal BusinessScope InBusinessScope;
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public string Picture { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Discription { get; set; }
        /// <summary>
        /// 认证类型
        /// </summary>
        public string AuthType { get; set; }
        /// <summary>
        /// 相关证件
        /// </summary>
        public string CertImages { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreationTime { get; set; }
        /// <summary>
        /// 团购标识
        /// </summary>
        public bool IsGroup { get; set; }
        /// <summary>
        /// 限时购标识
        /// </summary>
        public bool IsTimeLimit { get; set; }
        /// <summary>
        /// 保持零售价标识
        /// </summary>
        public bool IsKeepPrice { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public StoreVerifyStatus Status { get; set; }
        /// <summary>
        /// 审核状态描述
        /// </summary>
        public string StatusView => Status.GetDescription();
        /// <summary>
        /// 商铺星级
        /// </summary>
        public int StoreStar { get; set; }
        /// <summary>
        /// 经营范围
        /// </summary>
        public string BusinessScope => InBusinessScope?.Name;
        /// <summary>
        /// 经营Id
        /// </summary>
        public long? BusinessScopeId => InBusinessScope?.Id;
        /// <summary>
        /// 店铺经营地址
        /// </summary>
        public string StoreAddress { get; set; }
        /// <summary>
        /// 客服电话
        /// </summary>
        public string CustomerServicePhone { get; set; }
        /// <summary>
        /// 销售总额
        /// </summary>
        public decimal SaleAmount { get; set; }
        /// <summary>
        /// 已结算销售额
        /// </summary>
        public decimal BanlancedSaleAmount { get; set; }
        /// <summary>
        /// 未结算销售额
        /// </summary>
        public decimal UnBanlancedSaleAmount { get; set; }
        /// <summary>
        /// 店铺保证金
        /// </summary>
        public decimal StoreFund { get; set; }
        /// <summary>
        /// 是否非法
        /// </summary>
        public bool IsInvalid { get; set; }
    }
}
